const originFetch = window.fetch
const myServer = 'http://localhost:3000'
window.fetch = async function (url, options) {
  console.log(url, 'url');
  if (!url.startsWith(myServer)) {
    console.log('不是我的服务');
    url = `${myServer}/rewrite?url=${url}`
  }
  return originFetch(url, options)
}

